//
//  AppSettings.m
//  iOSPractice
//
//  Created by hoolai on 2018/11/21.
//  Copyright © 2018年 hoolai. All rights reserved.
//

#import "AppSettings.h"

@implementation AppSettings

static AppSettings* mySettings = nil;
+ (AppSettings *) shareSettings{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        mySettings = [[super allocWithZone:NULL] init];
    });
    return mySettings;
    //return [[self alloc] init];
}
+ (instancetype)allocWithZone:(struct _NSZone *)zone{
    return [self shareSettings];
}
- (instancetype)init{
    self = [super init];
    self.myBeast = nil;
    self.level = 1;
    return self;
}

+ (int)skipButtonTag{
    return 3;
}
+ (UIColor *)myTextColor{
    return [UIColor colorWithRed:0 green:0.478431 blue:1 alpha:1];
}
+ (NSURL *)loadingMusicURL{
    return [[NSBundle mainBundle]URLForResource:@"linkstart" withExtension:@".mp3"];
}
+ (UIColor *)selectedCellColor{
    return [UIColor colorWithRed:233.0f/255.0f green:206.0f/255.0f blue:208.0f/255.0f alpha:1];
}
+ (NSString *)dataFilePath{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentsDirectory = [paths objectAtIndex:0];
    return documentsDirectory;
}
+ (NSInteger)maxLevel{
    return 3;
}
@end
